home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / gemfut15.lzh / AESWINX2.C < prev    next >
C/C++ Source or Header  |  1990-08-06  |  815b  |  34 lines

  1. /**************************************************************************
  2.  *
  3.  * AESFAST PD utilties.
  4.  *
  5.  *  Extended bindings...
  6.  *    winx_calc
  7.  *    winx_get
  8.  *************************************************************************/
  9.  
  10. #include <gemfast.h>
  11.  
  12. int 
  13. winx_get(whandle, wfield, prect)
  14.     int     whandle;
  15.     int     wfield;
  16.     GRECT   *prect;
  17. {
  18.     return wind_get(whandle, wfield, 
  19.                     &prect->g_x, &prect->g_y,
  20.                     &prect->g_w, &prect->g_h);
  21. }
  22.  
  23. int
  24. winx_calc(type, kind, pinrect, poutrect)
  25.     int     type;
  26.     int     kind;
  27.     GRECT   *pinrect;
  28.     GRECT   *poutrect;
  29. {
  30.     return wind_calc(type, kind, *pinrect,
  31.                         &poutrect->g_x, &poutrect->g_y,
  32.                         &poutrect->g_w, &poutrect->g_h);
  33. }
  34.